package zero.springdemo.springquartzdemo.core

import org.quartz.Job
import org.quartz.JobExecutionContext
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
import zero.springdemo.springquartzdemo.dao.TestDao

@Component
class TestTask : Job {

    @Autowired
    private lateinit var testDao: TestDao


    override fun execute(context: JobExecutionContext?) {
        println(context)
        println("这是自定义的 job")
        println(testDao.getList())

    }
}